import axios from '@/api/fetch';
import SERVER from '@/api/server';
// // 查询备件成本统计
// export const getStatisticalList = params => axios.post(`${SERVER.DMSCLOUD_PART}/part/cost/statistical`, params);
// // 查询委托单
// export const getRepairOrderList = params => axios.post(`${SERVER.DMSCLOUD_PART}/part/cost/repair-order/list`, params);
// // 查询销售单
// export const getSalesList = params => axios.post(`${SERVER.DMSCLOUD_PART}/part/cost/sales/list`, params);
// // 查询装饰派工单
// export const getDecorationList = params => axios.post(`${SERVER.DMSCLOUD_PART}/part/cost/decoration/list`, params);

// 查询备件成本统计
export const getStatisticalList = params => axios.get(`${SERVER.SEARCH_DMSCLOUD_PART}/part/cost/statistical`, { params });
// 查询委托单
export const getRepairOrderList = params => axios.get(`${SERVER.DMSCLOUD_PART}/part/cost/repair-order/list`, { params });
// 查询销售单
export const getSalesList = params => axios.get(`${SERVER.DMSCLOUD_PART}/part/cost/sales/list`, { params });
// 查询装饰派工单
export const getDecorationList = params => axios.get(`${SERVER.DMSCLOUD_PART}/part/cost/decoration/list`, { params });
